.class Lcom/waiqin365/lightapp/dailyreport/view/ap;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/view/ak;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/view/ak;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v4, 0x0

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/c/d;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/dailyreport/c/d;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->a(Lcom/waiqin365/lightapp/dailyreport/view/ak;I)I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->j(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->j(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->a:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->a:Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->d:Ljava/lang/String;

    const-string/jumbo v2, "2"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "3"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "100"

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->k(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->d(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Landroid/widget/RatingBar;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/RatingBar;->getRating()F

    move-result v0

    float-to-int v0, v0

    if-lez v0, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->a(Lcom/waiqin365/lightapp/dailyreport/view/ak;I)I

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->e:Ljava/lang/String;

    :cond_0
    :goto_0
    const-string/jumbo v0, "2"

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->c(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->b:Ljava/lang/String;

    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->b:Ljava/lang/String;

    const-string/jumbo v2, ""

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->e(Lcom/waiqin365/lightapp/dailyreport/view/ak;)I

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->b(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Landroid/content/Context;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    const v3, 0x7f080320

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    const v3, 0x7f080200

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    :goto_1
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->j(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/c;->a:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->a:Ljava/lang/String;

    const-string/jumbo v0, "3"

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/c/d;->d:Ljava/lang/String;

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->g(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->l(Lcom/waiqin365/lightapp/dailyreport/view/ak;)V

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/b/a/n;

    invoke-direct {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/b/a/n;-><init>(Lcom/waiqin365/lightapp/dailyreport/c/d;)V

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ap;->a:Lcom/waiqin365/lightapp/dailyreport/view/ak;

    invoke-static {v2}, Lcom/waiqin365/lightapp/dailyreport/view/ak;->m(Lcom/waiqin365/lightapp/dailyreport/view/ak;)Landroid/os/Handler;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/dailyreport/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/dailyreport/b/a/a;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/b/b;->start()V

    goto :goto_1
.end method
